//
//  MoveDetailModel.m
//  练习06
//
//  Created by hcios on 2017/7/7.
//  Copyright © 2017年 hcios. All rights reserved.
//

#import "MoveDetailModel.h"
#import "Tools.h"

@implementation MoveDetailModel

-(instancetype)initWithDict:(NSDictionary *)dict{
    if (self = [super init]) {
        _title = NonEmptyString(dict[@"title"]);
        _image_url = NonEmptyString(dict[@"image_url"]);
        _image_width = numberToString(dict[@"image_width"]);
        _image_height = numberToString(dict[@"image_height"]);
        _description_text = NonEmptyString(dict[@"description"]);
        _note_trip_name = NonEmptyString(dict[@"note"][@"trip_name"]);
        _note_user_name = NonEmptyString(dict[@"note"][@"user_name"]);
        _selfID = numberToString(dict[@"id"]);
        _name = NonEmptyString(dict[@"name"]);
    }
    return self;
}

@end
